import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-user/pageAll',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

/* 所有用户管理 禁用/启用 */
export const enable = (userIds) => {
  return request({
    url: '/api/blade-user/enable',
    method: 'post',
    params: {
      userIds,
    }
  })
}

/* 所有用户管理 解锁 */
export const unlock = (userIds) => {
  return request({
    url: '/api/blade-user/lock',
    method: 'post',
    params: {
      userIds,
    }
  })
}